import request from '@/utils/request'
// 预警查询
export function query(data) {
  return request({
    url: `/andon/grade/page`,
    method: 'post',
    data
  })
}

export function save(data) {
  return request({
    url: `/andon/grade/saveOrUpdate`,
    method: 'post',
    data
  })
}

export function batchRemove(data) {
  return request({
    url: `/andon/grade/delete`,
    method: 'delete',
    data
  })
}

// 新增配置人员  推送人员
export function addTuiSongRen(data) {
  return request({
    url: '/andon/grade/saveGradePush',
    method: 'post',
    data
  })
}

// 查看配置人员
export function queryTuiSongRen(id) {
  return request({
    url: `/andon/grade/queryGradePush/${id}`,
    method: 'get'
  })
}

// 删除配置人员
export function batchRemoveTuiSongRen(data) {
  return request({
    url: `/andon/grade/deletePush`,
    method: 'delete',
    data
  })
}
